package com.firebird.app.kotlin.stock.ui.allocation_manage.contract

import com.firebird.app.kotlin.stock.base.BaseView
import com.firebird.app.kotlin.stock.data.AllocationManageBean
import retrofit2.Call


interface AllocationManageContract {
    interface Model {
        fun getData(bpStatus: String?, bpType: String?, currentPage: String?, itemsPerPage: String?): Call<AllocationManageBean?>?
    }

    interface View : BaseView {
        override fun showLoading()
        override fun hideLoading()
        override fun onError(throwable: Throwable?)
        fun onSuccess(bean: AllocationManageBean?)
        fun onSuccessFresh(bean: AllocationManageBean?)
        fun onSuccessLoadMore(bean: AllocationManageBean?)
    }

    interface Presenter {
        fun getData(bpStatus: String?, bpType: String?, currentPage: String?, itemsPerPage: String?)
        fun getDataFresh(bpStatus: String?, bpType: String?, currentPage: String?, itemsPerPage: String?)
        fun getDataLoadMore(bpStatus: String?, bpType: String?, currentPage: String?, itemsPerPage: String?)
    }
}